import { ApiVersoin } from '@/common/enums/httpEnum'

const Url = {
  getArticleList: `${ApiVersoin.V2}/article/list`,
  getArticleDetail: `${ApiVersoin.V2}/article/detail`,
  getTypeConfig: `${ApiVersoin.V2}/article/type-config`,
}

//获取文案列表
export const getArticleList = (params) => uni.$uv.http.get(Url.getArticleList, { params, custom: { showLoading: true } })
//获取文案详情
export const getArticleDetail = (params) => uni.$uv.http.get(Url.getArticleDetail, { params, custom: { showLoading: true } })
//获取文案tab配置表
export const getTypeConfig = (params) => uni.$uv.http.get(Url.getTypeConfig, { params, custom: { showLoading: true } })
